import numpy as np
class Detector(object):
    def __init__(self,chassis_1,chassis_2):
        self.distance = Distance(chassis_1, chassis_2)


    def Distance(chassis_1, chassis_2):
        return int(np.sqrt( (chassis_1.x - chassis_2)**2 + (chassis_1.x - chassis_2.y)) )

    def __str__(self):
        return "distance: " + str(self.distance)
